﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>我的账户_来加体检网</title>
    <meta name="Keywords" content="来加体检网">
    <meta name="Description" content="来加体检网">
    <meta name="applicable-device" content="mobile">
    <meta name="location" content="province=福建;city=福州">
    <!-- 移动设备支持 -->
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
    <meta content="no-cache" http-equiv="pragma">
    <meta content="0" http-equiv="expires">
    <meta content="telephone=no, address=no" name="format-detection">
    <!--<meta name="apple-mobile-web-app-capable" content="yes"> -->
    <!--<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">-->
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <!--<meta name="x5-fullscreen" content="true">-->

    <link href="Public/mobile/css/common.css?64" rel="stylesheet" type="text/css">
    <link href="Public/mobile/css/new.css?65" rel="stylesheet" type="text/css">
    <link href="Public/mobile/js/layer/need/layer.css" rel="stylesheet" type="text/css">
    <link href="Public/mobile/js/layerModel/layerModel.css" rel="stylesheet" type="text/css">

    <link href="mobile/cropbox/style2.css" rel="stylesheet" />
</head>
<body>
    <header class="header">
        <a class="fh_btn" href="personal_data.html"></a>
        <h2>头像设置</h2>
        <a class="hom_icon" href="Index.html"></a>
    </header>
    <div style="height:50px"></div>

    <div class="container">
        <div class="imageBox">
            <div class="thumbBox"></div>
            <div class="spinner" style="display: none">请上传图片...</div>
        </div>
        <div class="action">
            <!-- <input type="file" id="file" style=" width: 200px">-->
            <div class="new-contentarea tc">
                <a href="javascript:void(0)" class="upload-img">
                    <label class="upload-file">上传图像</label>
                </a>
                <input type="file" class="" name="upload-file" id="upload-file" />
            </div>
            <a id="btnCrop" class="Btnsty_peyton" href="javascript:;">保存</a>
            <!--<a  id="btnZoomIn" class="Btnsty_peyton" href="javascript:;"  >+</a>
            <a  id="btnZoomOut" class="Btnsty_peyton" href="javascript:;" >-</a>-->
        </div>
        <div class="cropped"></div>
    </div>

    <script type="text/javascript">
        // 定义一些常量
        var __appId = "";			        // 必填，公众号的唯一标识
        var __timestamp = ""; 	// 必填，生成签名的时间戳
        var __nonceStr = ""; 		// 必填，生成签名的随机串
        var __signature = "";	// 必填，签名，见附录1
        var __public = '/Public';
        var __baiduak = "FE5a0df097aaacb5b50fe2c75fd2de0f";
        var __refererType__ = "normal";
        var __indexUrl__ = "/";//默认的首页地址,即当返回到顶层时的地址
    </script>
    <script type="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
    <!-- <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> -->
    <script type="text/javascript" src="Public/mobile/js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="Public/mobile/js/layer/layer.js"></script>
    <script type="text/javascript" src="Public/mobile/js/layerModel/jquery.layerModel.js"></script>
    <script type="text/javascript" src="Public/mobile/js/jquery.scrollLoading.js"></script>
    <script type="text/javascript" src="Public/mobile/js/jquery.cookie.js"></script>
    <script type="text/javascript">
        if (__refererType__ == "weixin") {
            document.write('<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
        }
    </script>
    <script type="text/javascript" src="Public/mobile/js/common.js?72"></script>

    <script type="text/javascript" src="Public/mobile/js/member.js"></script>
    <script src="mobile/js/exif.js"></script>
    <script src="mobile/js/lrz.js"></script>
    <script src="mobile/js/cropbox.js"></script>


    <script type="text/javascript">
        $(function () {
            var options =
            {
                thumbBox: '.thumbBox',
                spinner: '.spinner',
                imgSrc: ''
            }
            var cropper = $('.imageBox').cropbox(options);

            $(document).on('touchstart click', '.upload-file', function () {
                $("#upload-file").click();
            });
            var has_img = false;
            $(document).on('change', '#upload-file', function () {

                console.log(this.files[0].size)
                if (this.files[0].size > 0) {
                    has_img = true;
                }
                lrz(this.files[0], { width: 400 }, function (res) {
                    options.imgSrc = res.base64;
                    cropper = $('.imageBox').cropbox(options);
                });
                this.files = [];
            });

            $(document).on('touchstart click', '#btnCrop', function () {

                if (!has_img) {
                    zk_alert_msg('请选择图片！');
                    return;
                }
                var img = cropper.getDataURL();
                $.ajax({
                    type: 'post',
                    url: '/Member/do_edit_member_info',
                    data: { img: img },
                    dataType: 'json',
                    success: function (res) {
                        if (res.status == 1) {
                            location.href = document.referrer;
                        }
                        else {
                            zk_alert_msg(res.msg, 0);
                        }
                    }
                })
            });
            $(document).on('touchstart click', '#btnZoomIn,.imageBox', function () {
                cropper.zoomIn();
            });

            $(document).on('touchstart click', '#btnZoomOut,.imageBox', function () {
                cropper.zoomOut();
            });

        });


    </script>
    <script type="text/javascript">
        //解析事sem推广
        var hash = location.hash;
        var reg = new RegExp("sem_(bd|360|sg|jt|sm)_(.*)?");
        if (reg.test(hash)) {
            var matchs = reg.exec(hash);
            $.get("/Sem/submit", { channel: matchs[1], keys: matchs[2] }, function () {
            });
        }
    </script>
    <div style="display:none">
        <!--统计代码-->
        <img src="http://c.cnzz.com/wapstat.php?siteid=1253083248&r=http%3A%2F%2Fm.viptijian.com%2FMember%2Fedit_my_info.html&rnd=1842703225" width="0" height="0" />    <!--百度统计代码-->
        <img src="http://hm.baidu.com/hm.gif?si=e23220b7e728f5512d935dd4b95e539d&amp;et=0&amp;nv=0&amp;st=4&amp;lt=1478536873&amp;su=http%3A%2F%2Fm.viptijian.com%2FMember%2Fedit_my_info.html&amp;v=wap-0-0.2&amp;rnd=7475474256" width="0" height="0" />
    </div>
    <script type="text/javascript">
        // 新的百度统计代码
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?da5f5c0399ed040f41e88552ab48d766";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <!--腾讯统计代码-->
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=58654145" charset="UTF-8"></script>
</body>
</html>